package com.tz.crm.entity.dto;




import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by wangchunyang on 2017/3/7.
 * 新增合同 表单数据封装类
 */
public class ContractFrom {

    @Valid
    Contract contract;
    @Valid
    @NotNull(message = "{payPlan.can.not.be.blank}")
    List<Payment> paymentDtoList;//付款计划dto

    public ContractFrom() {

    }

    public Contract getContract() {
        return contract;
    }

    public void setContract(Contract contract) {
        this.contract = contract;
    }

    public List<Payment> getPaymentDtoList() {
        return paymentDtoList;
    }

    public void setPaymentDtoList(List<Payment> paymentDtoList) {
        this.paymentDtoList = paymentDtoList;
    }

    @Override
    public String toString() {
        return "ContractFrom{" +
                "contract=" + contract +
                ", paymentDtoList=" + paymentDtoList +
                '}';
    }
}
